Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(paths): gracefully handle nulls for local cleaning filters #26085

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

thmsobrmlr
Copy link
Contributor

@thmsobrmlr thmsobrmlr commented Nov 8, 2024

Problem

Duplicating an insight leads to nulls in the query. For the local path cleaning filters this resulted in a crash for a customer.

Changes

Gracefully handles null values for the local path cleaning filter.

Follow-ups

  • Look into wether duplicating an insight creates these nulls, and if so - fix that -> could not reproduce
  • Python doesn't distinguish between null and undefined, meaning we have no protection from "faulty" queries like this in our backend side validation. Likely we should add nulls to the whole schema.ts types where we have an optional value.

How did you test this code?

Used the query from the customer locally to verify the issue and fix.

Copy link
Contributor

github-actions bot commented Nov 8, 2024

Size Change: 0 B

Total Size: 1.15 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 1.15 MB

compressed-size-action

@thmsobrmlr thmsobrmlr requested a review from a team November 8, 2024 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant